<?php  get_header(); ?>

	<div id="content">

		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
        <!-- start entry post -->
        <div class="post" id="post-<?php the_ID(); ?>">

            
 <div class="etext">                                                                    
                       
						
<?php $values = get_post_custom_values("post-img"); if (isset($values[0])) : ?>

<?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'Yes') { ?>

<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img class="epic" src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("post-img"); echo $values[0]; ?>&amp;w=<?php $thumbwidth = get_theme_option('thumb_width');  if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>&amp;h=<?php $thumbheight = get_theme_option('thumb_height');  if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>&amp;zc=1&amp;q=100&amp;cropfrom=<?php $thumbcrop = get_theme_option('timthumb_cropping');  if($thumbcrop == '') { ?>topcenter<?php } else { ?><?php echo stripcslashes($thumbcrop); ?><?php } ?>" alt="<?php the_title(); ?>" /></a>

<?php } else { ?>

<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img class="epic" src="<?php $values = get_post_custom_values("post-img"); echo $values[0]; ?>" alt="<?php the_title(); ?>" width="<?php $thumbwidth = get_theme_option('thumb_width');  if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>" height="<?php $thumbheight = get_theme_option('thumb_height');  if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>" /></a>

<?php } ?>

<?php else: ?>

<?php $timthumb_activate = get_theme_option('timthumb_activate'); if($timthumb_activate == 'Yes') { ?>

<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img class="epic" src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_post_image(); ?>&amp;w=<?php $thumbwidth = get_theme_option('thumb_width');  if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>&amp;h=<?php $thumbheight = get_theme_option('thumb_height');  if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>&amp;zc=1&amp;q=100&amp;cropfrom=<?php $thumbcrop = get_theme_option('timthumb_cropping');  if($thumbcrop == '') { ?>topcenter<?php } else { ?><?php echo stripcslashes($thumbcrop); ?><?php } ?>" alt="<?php the_title(); ?>" /></a>

<?php } else { ?>

<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img class="epic" src="<?php echo get_post_image(); ?>" alt="<?php the_title(); ?>" width="<?php $thumbwidth = get_theme_option('thumb_width');  if($thumbwidth == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbwidth); ?><?php } ?>" height="<?php $thumbheight = get_theme_option('thumb_height');  if($thumbheight == '') { ?>200<?php } else { ?><?php echo stripcslashes($thumbheight); ?><?php } ?>" /></a>

<?php } ?>

<?php endif; ?>
<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="postmeta"><span>Posted by: <a href="<?php the_author_url(); ?>" target="_blank"><?php the_author_meta('display_name'); ?></a> on <strong><?php the_time('F j') ?></strong> in <strong><?php the_category(', ') ?></strong></span></p>
<div class="excerpt"><?php the_post_excerpt(); ?></div>
</div>

<div
class="author clearfix"><?php echo get_avatar(get_the_author_email(), $size = '100', $default = $urlHome . '/images/default_avatar_author.gif' ); ?>	<div
class="shortbio"><h4>About the Author</h4><p><?php the_author_description(); ?></p></div></div>
  <div class="clearer"></div>    
<div class="entry">

            <?php the_content(); ?>

  <div class="clearer"></div> 


<div class="share"></div>

 <div class="social">  
                        <ul>          
                            <li class="stumble"><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank" title="Stumble This"><span>Stumble This!</span></a></li>
                            <li class="delicious"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&amptitle=<?php the_title(); ?>" target="_blank" title="Add to Delicious Bookmarks"><span>Mark as Delicious!</span></a></li>
                            <li class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink() ?>" target="_blank" title="Add to Facebook"><span>Bookmark on Facebook!</span></a></li>
                            <li class="tweet"><a href="http://twitter.com/home/?status=<?php the_title(); ?>: <?php the_permalink() ?>" target="_blank" title="Tweet This!"><span>Tweet This!</span></a></li>

                        </ul>
                    </div>

<div class='sharethispost'><div class='enjoyed'><h4>Enjoyed this post?</h4><p>Subscribe to our <a href='http://feeds.feedburner.com/webdesignsoul' title='Subscribe To Our Feeds'>RSS Feed</a>, <a title='Follow @WDSMedia on Twitter' href='http://twitter.com/wdsmedia'>Follow us</a> on Twitter or simply recommend us to friends and colleagues!</p></div><div class='doit'><ul>

                      <li><script src="http://designbump.com/sites/all/modules/drigg_external/js/button.js" type="text/javascript"></script></li>
                      <li>
					<li><script type="text/javascript">url_site='<?php the_permalink(); ?>';</script><script src="http://thewebblend.com/sites/all/modules/drigg_external/js/button.js" type="text/javascript"></script>
					</li>
                      	<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
                      </li>
                      
                      <li class="bump">
						<a title="Post on Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="normal-count"></a>
<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>
                      </li>
                      <li>
                      	<script type="text/javascript">
    						tweetmeme_style = "normal";
							tweetmeme_source = 'wdsmedia';
						</script>

						<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></li>
                    </ul></div></div>

            </div>
            <?php comments_template(); ?>
        </div>
        <!-- end entry post -->    
       
        <?php endwhile; else: ?>
    
            <div class="entry">
                    <h2>Error 404 Page.</h2>
                <div class="post">
                    What you're looking for is not here! Why don't you go over the <a href="<?php bloginfo('home'); ?>">homepage</a> instead?
                </div>
            </div>
    
    		<?php endif; ?>

	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
